package com.hdax.dm.controller;

import com.hdax.common.dto.HotItemDto;
import com.hdax.dm.common.CommonResponse;
import com.hdax.dm.common.ResponseUtil;
import com.hdax.dm.service.DmItemService;
import com.hdax.dm.service.IndexNavService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/api/index")
public class IndexNavController {

    @Autowired
    private IndexNavService indesNavService;


    @PostMapping("/nav")
    public CommonResponse nav(){
        return indesNavService.indexNavs();
    }




}
